IOMMU/x86: don't bypass softirq processing in arch_iommu_hwdom_init()
authorJan Beulich <jbeulich@suse.com>
Mon, 2 Mar 2020 09:49:48 +0000 (10:49 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 2 Mar 2020 13:06:22 +0000 (13:06 +0000)
commit9cedfab5e4b50bd1c6276413766350e2bff33b26
tree40d0346f019aee12cf2af44e26500ca449ca79d3
parent9649cef3b3a7eaca1347154ea7f274586d48bc29
IOMMU/x86: don't bypass softirq processing in arch_iommu_hwdom_init()

Even when a page doesn't need mapping, we should check whether softirq
processing should be invoked. Otherwise with sufficiently much RAM
chances of a to-be-mapped page actually occurring with the loop counter
having the "right" value may become diminishingly small.

Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Tested-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/drivers/passthrough/x86/iommu.c